<?php echo CHtml::errorSummary($model); ?>

<div class="form wide">

<?php echo CHtml::beginForm(); ?>
	<h3 class="bar">Данные пользователя</h3>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'contract'); ?>
		<?php echo CHtml::activeTextField($model,'contract',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'contract'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'account'); ?>
		<?php echo CHtml::activeTextField($model,'account',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'account'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'ip_address'); ?>
		<?php echo CHtml::activeTextField($model,'ip_address',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'ip_address'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'username'); ?>
		<?php echo CHtml::activeTextField($model,'username',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo CHtml::error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'balance'); ?>
		<?php echo CHtml::activeTextField($model,'balance',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'balance'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'abonplata'); ?>
		<?php echo CHtml::activeTextField($model,'abonplata',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'abonplata'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'end_time'); ?>
		<?php echo CHtml::activeTextField($model,'end_time',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo CHtml::error($model,'end_time'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'packet_id'); ?>
		<?php echo CHtml::activeDropDownList($model,'packet_id',CHtml::listData(Packet::model()->active()->findAll(), 'id', 'name')); ?>
		<?php echo CHtml::error($model,'packet'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'speed_id'); ?>
		<?php echo CHtml::activeDropDownList($model,'packet_id',CHtml::listData(Speed::model()->active()->findAll(), 'id', 'name')); ?>
		<?php echo CHtml::error($model,'pkt_speed'); ?>
	</div>

	<div class="row checkbox">
		<?php echo CHtml::activeCheckBox($model,'blocked'); ?>
		<?php echo CHtml::activeLabelEx($model,'blocked'); ?>
		<?php echo CHtml::error($model,'blocked'); ?>
	</div>

	<div class="row checkbox">
		<?php echo CHtml::activeCheckBox($model,'enabled'); ?>
		<?php echo CHtml::activeLabelEx($model,'enabled'); ?>
		<?php echo CHtml::error($model,'enabled'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'address'); ?>
		<?php echo CHtml::activeTextField($model,'address',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo CHtml::error($model,'address'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'email'); ?>
		<?php echo CHtml::activeTextField($model,'email',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo CHtml::error($model,'email'); ?>
	</div>

	<div class="row">
		<?php echo CHtml::activeLabelEx($model,'telephon'); ?>
		<?php echo CHtml::activeTextField($model,'telephon',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo CHtml::error($model,'telephon'); ?>
	</div>

	<div class="buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('cms', 'Create') : Yii::t('cms', 'Update')); ?>
		<?php echo Yii::t('cms'," or ");?>
		<?php echo CHtml::link(Yii::t('cms', 'Cancel'),array('/user'),array("class"=>"cancel"));?>
	</div>

<?php echo CHtml::endForm(); ?>

</div><!-- form -->